<div id="main">
	<div class="article">
		<?php if(isset($articles) && count($articles) > 0): ?>
			<?php foreach($articles as $article): ?>
			<div class="items-article">
				<div id="pro-img">
					<img src="<?php echo site_url("files/uploaded/".$article->image);?>" width="95px" height="95px" />
				</div>
				<span style="font-weight: 600;"><a href="<?php echo site_url("articles/item/".$article->language_relation); ?>"><?php echo $article->title; ?></a>
				</span><br /><br />
				<?php echo word_limiter(strip_tags($article->body), 50); ?>
			</div>
			<?php endforeach; ?>
			<?php echo $pagination; ?>
		<?php elseif(isset($item)): ?>
			<div id="items-article-detail">
				<div id="img-detail">
					<img src="<?php echo site_url("files/uploaded/".$item->image);?>" width="150px" height="150px" />
				</div>
				<span style="font-weight: 600;"><?php echo $item->title; ?></span><br /><br />
				<?php echo $item->body; ?>
			</div>
		<?php else: ?>
			No article found. 
		<?php endif; ?>
	</div>
</div>